package com.jiyun.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 旅行订单表(Order)实体类
 *
 * @author LYT
 * @since 2025-02-14 08:34:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    @TableId(value = "id", type = IdType.AUTO)
    /**
     * 订单ID
     */
    private Integer id;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 酒店ID
     */
    private Integer tavernId;
    /**
     * 酒店名称
     */
    private String hotelName;
    /**
     * 酒店位置
     */
    private String location;
    /**
     * 入住日期
     */
    @JsonFormat(pattern = "MM月dd日", timezone = "GMT+8")
    private Date checkInDate;
    /**
     * 退房日期
     */
    @JsonFormat(pattern = "MM月dd日", timezone = "GMT+8")
    private Date checkOutDate;
    /**
     * 房间数量
     */
    private Byte rooms;
    /**
     * 入住人数
     */
    private Byte guests;
    /**
     * 每晚单价
     */
    private Double pricePerNight;
    /**
     * 订单状态
     */
    private String orderState;
    /**
     * 总价
     */
    private Double totalPrice;
    /**
     * 评分(0-5分)
     */
    private BigDecimal rating;
    /**
     * 评论数
     */
    private Integer commentsCount;
    /**
     * 距离描述
     */
    private String distance;
    /**
     * 照片
     */
    private String image;
    /**
     * 创建时间
     */
    private Date createTime;


}

